package mapreduce;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class FlowSortReduce extends Reducer<PhoneFlow , NullWritable, PhoneFlow ,NullWritable> {

    @Override
    protected void reduce(PhoneFlow key, Iterable<NullWritable> values, Reducer<PhoneFlow,NullWritable, PhoneFlow,NullWritable>.Context context) throws IOException, InterruptedException {

        context.write(key,NullWritable.get());

    }
}